﻿#ifndef UPLOADOPENDOORINFORTHREAD_H
#define UPLOADOPENDOORINFORTHREAD_H

#include <QObject>
#include <QList>
#include "oeasycommon.h"
#include <QTimer>
#include "settings.h"


class uploadOpenDoorInforThread : public QObject
{
    Q_OBJECT

public:
    explicit uploadOpenDoorInforThread();
    ~uploadOpenDoorInforThread();

public slots:
    void onInitPara(TRANSFER_INFO);
    void onTimeout();
    void slot_requestFinished(QString strHttpKey,int nType,bool bSuccess, const QString& strResult,int userData,QString,QString);

private:
    void onRequestUploadInfor(QString key, QString value);

private:
    TRANSFER_INFO paraInfo;
    Settings *m_pRecord;
    QString m_Group;
    QTimer* m_pTimer;
    int nTimeout;
    QString m_strRecordDirPath;
    long m_nUploadCount;
    long m_nHeartbeat;
    QString m_strHttpClientKeyName;
};

#endif // UPLOADOPENDOORINFORTHREAD_H
